package com.fuhao.springbootrabbit.controller;

import com.fuhao.springbootrabbit.Service.DirectService;
import com.fuhao.springbootrabbit.constant.RabbitConstant;
import com.rabbitmq.client.ConfirmCallback;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.connection.CorrelationData;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;

/**
 * @author zhang
 * @title: DirectController
 */
@RestController
public class DirectController{

    @Autowired
    private DirectService directService;

    @RequestMapping("/directSend")
    public String DirectSend(){
       directService.DirectSend();
        return "sucess";
    }
}
